#include "BootLoader.h"
#include "../service/service.h"
void BootLoader::startService() {
    if (configReader.getConfig(CONFIG_DASHBOARD_ENABLE, CONFIG_DASHBOARD_ENABLE_DEFAULT) == "true")
        start_web_server();
    if (configReader.getConfig(CONFIG_NODE_SERVICE_ENABLE, CONFIG_NODE_SERVICE_ENABLE_DEFAULT) == "true")
        start_core_server();
    start_slave_control_service();
    // 命令行服务必须是最后一个
    cliService.start();
}
